<?php

namespace app\model;

class NewsModel extends BaseModel
{
    public $table = 'news';

    public $indexAjaxParams = [
        'alias' => 'news',
        'join' => [
        ],
        'order' => '',
        'field' => 'news.*',
        'where' => [
            'status' => 1
        ],
        'page_status' => true,
        'count' => true,
        'select' => true,
    ];

    public $listField = [
        'id' => [
            'name'=>'编号',
            'width'=>'100',
            'fixed'=> true,
        ],
        'title' => [
            'name'=>'标题',
            'width'=>'250',
        ],
        'type' => [
            'name'=>'类型',
            'width'=>'150',
            'templet'=> true
        ],
    ];
}